import axios from '@/libs/request/axios'

// 玄武链接地址获取
export const getTortoiseLinkConfig = (params) => {
    return axios.request({
        url: `/case/config/tortoise/link`,
        params: params,
        method: 'get'
    })
}

// 获取最新的玄武调用通知数据
export const getNewestApplyNotice = (params) => {
    return axios.request({
        url: `/case/tortoiseApply/newest`,
        params: params,
        method: 'get'
    })
}

// 批量手动调用玄武正式进件
export const applyBatchExecute = (params) => {
    return axios.request({
        url: `/case/tortoiseApply/batch`,
        data: params,
        method: 'post'
    })
}

// 手动触发反欺诈
export const handInvokeAntiFraud = (params)=>{
    return axios.request({
        url: `/case/antiFraudHand/handInvokeAntiFraud`,
        data: params,
        method: 'post'
    })
}

// 查询欺诈信息推送数据
export const listAntiFraudPush = (params)=>{
    return axios.request({
        url: `/case/antiFraud/list`,
        params: params,
        method: 'get'
    })
}

// 欺诈信息保存
export const pushAntiFraud = (params)=>{
    return axios.request({
        url: `/case/antiFraud/pushAntiFraud`,
        data: params,
        method: 'post'
    })
}

// 删除反欺诈信息
export const removeFraudRecord = (id)=>{
    return axios.request({
        url: `/case/antiFraud/remove/${id}`,
        data: {},
        method: 'delete'
    })
}


// 决策引擎手工触发
export const decisionHandInvoke = (params)=>{
    return axios.request({
        url: `/case/decisionInvoke/handInvoke`,
        data: params,
        method: 'post'
    })
}

// 获取最新的决策引擎手工调用记录时间
export const newestDecisionHandInvokeDateStr = (params) =>{
    return axios.request({
        url: `/case/decisionInvoke/newestDateStr`,
        params: params,
        method: 'get'
    });
}
